package com.example.usermanagement.enums;

import lombok.Getter;

/**
 * @author yha
 * @ClassName
 * @description:返回状态码
 * @date 2024年09月10日
 * @version: 1.0.0
 */
@Getter
public enum ResponseStatus {

    ERROR("500","未知错误异常"),
    OK("200","success"),

    PARAM_NOT("100","参数找不到"),
    PARAM_ERROR("101","参数异常"),



    AUTH_NOT_TOKEN("300","令牌过期，请重新获取"),
    AUTH_ERROR_TOKEN("301","令牌校验错误"),
    OBJECT_NOT("302","对象不存在"),

    RESOURCE_NOT("404","资源不存在"),



    PATH_REDIRECT("606","重定向跳转");


    private String code;

    private String msg;



    ResponseStatus(String code, String msg){
        this.code = code;
        this.msg = msg;
    }
}
